package com.dubbo.demo.service.impl;

import com.dubbo.demo.service.OrderService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Carlos
 * @version 1.0
 * @Description 订单提供者
 * @date 2021/11/1 21:33
 **/
@Service  // dubbo暴露服务
@Component
public class OrderServiceImpl implements OrderService {

    @Override
    public List<String> list() {
        List<String> list = new ArrayList<>();
        list.add("订单1");
        list.add("订单2");
        return list;
    }
}
